package peer.assist;
import java.net.InetAddress;
public class AssistUser{
	int sessionId;
	InetAddress outIp;
	int outPort;
	long lastActiveTime;
	InetAddress clientIp;
	int clientPort;
	InetAddress lanIp;
	int lanPort;
	public AssistUser(int sessionId,InetAddress clientIp,int clientPort,InetAddress outIp,int outPort,InetAddress lanIp,int lanPort){
		this.sessionId=sessionId;
		this.clientIp=clientIp;
		this.clientPort=clientPort;
		this.outIp=outIp;
		this.outPort=outPort;
		this.lanIp=lanIp;
		this.lanPort=lanPort;
		lastActiveTime=System.currentTimeMillis();
	}
	
	void active(){
		lastActiveTime=System.currentTimeMillis();
	}
	
	public InetAddress getOutIp(){
		return outIp;
	}
	
	public int getOutPort(){
		return outPort;
	}
	
	public InetAddress getClientIp(){
		return clientIp;
	}
	
	public int getClientPort(){
		return clientPort;
	}
	
	public InetAddress getLanIp(){
		return lanIp;
	}
	
	public int getLanPort(){
		return lanPort;
	}
	
	
	
	

}
